home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / SHELLS / TPSHELL / SHELL.DOC next >
Text File  |  1986-05-23  |  1KB  |  27 lines

  1. SHELL.PAS
  2.  
  3. This is an include file for Turbo Pascal which defines the
  4. procedure Shell, allowing a Pascal program to call a DOS subprocess
  5. to execute any command string as if it had been typed from the command
  6. prompt. It is a simplification of the procedures developed byBela Lubkin
  7. of Borland International Technical Support, saving a little space and compile
  8. time and hopefully a little easier to understand and include in programs.
  9.  
  10. Tutorial comments are included with the source code.
  11.  
  12. SUBPROC.PAS
  13.  
  14. This is the source code for a simple program which uses SHELL to execute
  15. DOS commands. It can be used inside a .BAT file to execute other .BAT
  16. files and then resume. The levels of nesting is limited by memory size and
  17. the number of open files your system allows.
  18.  
  19. It also illustrates an easy techique to get all of the parameter string
  20. from DOS, without bothering with concatenating from ParamStr function.
  21. It seems odd that Borland didn't build this into the language (unless they
  22. did and I missed it.)
  23.  
  24. AUTHOR: Bill Mayne
  25.         9707 Lawndale Dr.
  26.         Silver Spring, MD 20901
  27.